

def test_category_creation(self):
    cat = Category(name='node.js')
    self.assertTrue((cat.id is None))
    db.session.add(cat)
    db.session.commit()
    self.assertTrue((cat.id >= 1))

dataset/ETHPy150Open brijeshb42/yapper/tests/PostTest/test_add_tag.py TagAddTestCase.test_category_creation/original