'testing the string representation of \'model\' classes.'

def test_repr(self):

    network = models_v2.Network(name='net_net', status='OK', admin_state_up=True)
    actual_repr_output = repr(network)
    exp_start_with = '<neutron.db.models_v2.Network'
    exp_middle = ('[object    at    %x]' % id(network))
    exp_end_with = "    {project_id=None,    id=None,    name='net_net',    status='OK',    admin_state_up=True,    vlan_transparent=None,    availability_zone_hints=None,    standard_attr_id=None}>"
    final_exp = ((exp_start_with + exp_middle) + exp_end_with)
    self.assertEqual(final_exp, actual_repr_output)
