Exemple #1
0
class PropertyManagerTests(TestCase):
    def setUp(self):
        config = Configuration('test-data/config/ctc_config.json')
        ctc_manager = ConnectionManager(config.get_connection_info())
        self.pm = PropertyManager(ctc_manager, config)

    def test_get_all_users(self):
        self.assertEqual(len(self.pm.all()), 19)

    def test_get_female_users(self):
        self.assertEqual(len(self.pm.filter('gender="F"')), 2)

    def test_n_of_walking_users(self):
        self.assertEqual(len(self.pm.filter('activity="Walking"')), 4)
class PropertyManagerTests(TestCase):

    def setUp(self):
        config = Configuration('test-data/config/ctc_config.json')
        ctc_manager = ConnectionManager(config.get_connection_info())
        self.pm = PropertyManager(ctc_manager, config)

    def test_get_all_users(self):
        self.assertEqual(len(self.pm.all()), 19)

    def test_get_female_users(self):
        self.assertEqual(len(self.pm.filter('gender="F"')), 2)

    def test_n_of_walking_users(self):
        self.assertEqual(len(self.pm.filter('activity="Walking"')), 4)
 def setUp(self):
     config = Configuration('test-data/config/ctc_config.json')
     ctc_manager = ConnectionManager(config.get_connection_info())
     self.pm = PropertyManager(ctc_manager, config)
Exemple #4
0
 def setUp(self):
     config = Configuration('test-data/config/ctc_config.json')
     ctc_manager = ConnectionManager(config.get_connection_info())
     self.pm = PropertyManager(ctc_manager, config)