

def test_added(self):
    eq_(ThreadMappingType.search().count(), 0)
    new_thread = ThreadFactory()
    self.refresh()
    eq_(ThreadMappingType.search().count(), 1)
    PostFactory(thread=self)
    self.refresh()
    eq_(ThreadMappingType.search().count(), 1)

dataset/ETHPy150Open mozilla/kitsune/kitsune/forums/tests/test_es.py TestPostUpdate.test_added/VarMisuse@56/66 `new_thread`->`self`