Exemple #1
0
    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()
Exemple #2
0
 def render(self, *args, **kwargs):
     uid = args[0]
     return MPost2Label.query_count(uid)
Exemple #3
0
    def render(self, *args, **kwargs):
        # uid = args[0]

        uid = kwargs.get('uid', args[0])
        return MPost2Label.query_count(uid)
Exemple #4
0
 def test_query_count(self):
     MPost2Label.query_count(self.uid)
     assert True