box_test.py 403 B

1234567891011121314
  1. from anonymizer.utils import Box
  2. class TestBox:
  3. @staticmethod
  4. def test_it_has_coordinates_a_score_and_a_kind():
  5. box = Box(x_min=1.0, y_min=2.0, x_max=3.0, y_max=4.0, score=0.9, kind='face')
  6. assert box.x_min == 1.0
  7. assert box.y_min == 2.0
  8. assert box.x_max == 3.0
  9. assert box.y_max == 4.0
  10. assert box.score == 0.9
  11. assert box.kind == 'face'