def topics_in_database(step): for topic_dict in step.hashes: create_category(**topic_dict)
def test_create_category(self): name = "Education" slug = "education" category = create_category(name=name) self.assertEqual(category.name, name) self.assertEqual(category.slug, slug)