Beispiel #1
0
 def create_category(self, name="Category name"):
     cat = ProductCategory(name=name)
     cat.save()
     return cat
Beispiel #2
0
 def test_category_only_needs_a_name(self):
     cat = ProductCategory(name="Cat 1")
     cat.save()  # Should not raise