def test_state_bbox(self): test_box = [(0.0, 0.0), (1.0, 0.0), (1.0, 1.0), (0.0, 1.0), (0.0, 0.0)] state = State() state.area = Polygon(test_box) self.assertEqual(Polygon(test_box), state.bbox)
def test_state_unicode(self): test_name = "Berlin" state = State() state.name = test_name self.assertEqual(test_name, unicode(state))