Exemplo n.º 1
0
class CommandTestCase(TestCase):

    fixtures = ["fixtures.json"]

    def setUp(self):
        self.models_statistics = Command()
        self.result = []
        for item in self.models_statistics.get_all_stat():
            self.result.append(item)

    def test_command(self):
        if not u"base.userprofile - 1" in self.result:
            self.fail()
Exemplo n.º 2
0
 def setUp(self):
     self.models_statistics = Command()
     self.result = []
     for item in self.models_statistics.get_all_stat():
         self.result.append(item)