'Attempting to use a format that is not configured will raise an
assertion error.'

def test_invalid_format(self):

    factory = APIRequestFactory()
    self.assertRaises(AssertionError, factory.post, path=u'/view/', data={u'example': 1}, format=u'xml')
