Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/s/t/stackalytics-HEAD/tests/api/test_releases.py   stackalytics(Download)
            releases = json.loads(response.data)['releases']
            self.assertEqual(3, len(releases))
            self.assertIn({'id': 'all', 'text': 'All'}, releases)
            self.assertIn({'id': 'icehouse', 'text': 'Icehouse'}, releases)
 
            releases = json.loads(response.data)['releases']
            self.assertEqual(1, len(releases))
            self.assertIn({'id': 'havana', 'text': 'Havana'}, releases)
 
    def test_release_details(self):

src/s/t/stackalytics-HEAD/tests/api/test_users.py   stackalytics(Download)
            users = json.loads(response.data)['users']
            self.assertEqual(2, len(users))
            self.assertIn({'id': 'john_doe', 'text': 'John Doe'}, users)
            self.assertIn({'id': 'bill_smith', 'text': 'Bill Smith'}, users)
 
            users = json.loads(response.data)['users']
            self.assertEqual(1, len(users))
            self.assertIn({'id': 'john_doe', 'text': 'John Doe'}, users)
 
    def test_user_details(self):