Пример #1
0
 def test_from_id_can_use_a_cursor(self):
     package = self.make_package()
     with self.db.get_cursor() as cursor:
         assert Package.from_id(package.id, cursor).id == package.id
Пример #2
0
 def test_can_be_instantiated_from_id(self):
     package = self.make_package()
     assert Package.from_id(package.id).id == package.id