'A warning is displayed if a proxy model is dumped without its concrete
parent.'

def test_dumpdata_proxy_without_concrete(self):

    ProxySpy.objects.create(name='Paul')
    with warnings.catch_warnings(record=True) as warning_list:
        warnings.simplefilter('always')
        self._dumpdata_assert(['fixtures.ProxySpy'], '[]')
    warning = warning_list.pop()
    self.assertEqual(warning.category, ProxyModelWarning)
    self.assertEqual(str(warning.message), "fixtures.ProxySpy    is    a    proxy    model    and    won't    be    serialized.")
