예제 #1
0
def topics_in_database(step):
    for topic_dict in step.hashes:
        create_category(**topic_dict)
예제 #2
0
 def test_create_category(self):
     name = "Education"
     slug = "education"
     category = create_category(name=name)
     self.assertEqual(category.name, name)
     self.assertEqual(category.slug, slug)
예제 #3
0
def topics_in_database(step):
    for topic_dict in step.hashes:
        create_category(**topic_dict)
예제 #4
0
파일: tests.py 프로젝트: jwirfs-brock/atlas
 def test_create_category(self):
     name = "Education"
     slug = "education"
     category = create_category(name=name)
     self.assertEqual(category.name, name)
     self.assertEqual(category.slug, slug)