def test_query_count(self): self.add_mess() a = MPost2Label.query_count(self.uid) print(a) self.add_M2L() b = MPost2Label.query_count(self.uid) print(b) assert a + 1 <= b self.tearDown()
def render(self, *args, **kwargs): uid = args[0] return MPost2Label.query_count(uid)
def render(self, *args, **kwargs): # uid = args[0] uid = kwargs.get('uid', args[0]) return MPost2Label.query_count(uid)
def test_query_count(self): MPost2Label.query_count(self.uid) assert True