Did I find the right examples for you? yes no

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

src/t/u/tuskar-HEAD/tuskar/tests/api/controllers/v1/test_racks.py   tuskar(Download)
        self.assertEqual(rack_json['slots'], rack.slots)
        self.assertEqual(rack_json['subnet'], rack.subnet)
        self.assertTrue(rack_json['nodes'])
        self.assertEqual(rack_json['nodes'][0]['id'],
                         str(rack.nodes[0].id))
        self.assertTrue(rack_json['capacities'])
        self.assertEqual(rack_json['capacities'][0]['value'],
                         rack.capacities[0].value)
        self.assertTrue(rack_json['links'])
        self.assertEqual(rack_json['links'][0]['rel'], 'self')
        self.assertEqual(rack_json['links'][0]['href'],
        self.assertEqual(response.content_type, "application/json")
 
        self.assertTrue(response.json['id'])
        self.assertEqual(response.json['name'], json['name'])
 

src/t/u/tuskar-HEAD/tuskar/tests/api/controllers/v1/test_flavors.py   tuskar(Download)
                                  '/flavors', params=request_json, status=201)
        self.assertEqual(response.content_type, "application/json")
        self.assertTrue(response.json['id'])
        self.assert_equality(request_json, response.json, ['name', 'max_vms'])
        flav_id=response.json['id']
        self.assertEqual(response.content_type, "application/json")
        for flav in update_response.json['flavors']:
          self.assertTrue(flav['name'] in ['flavor1', 'flavor2'])
          self.assertTrue(str(flav['max_vms']) in ['1', '2'])
          for c in flav['capacities']:
              self.assertTrue(c['value'] in ['1', '2'])