'The methods on the auth manager obey database hints'

def test_auth_manager(self):

    User.objects.create_user('alice', 'alice@example.com')
    User.objects.db_manager('default').create_user('bob', 'bob@example.com')
    alice = User.objects.using('other').get(username='alice')
    self.assertEqual(alice.username, 'alice')
    self.assertEqual(alice._state.db, 'other')
    self.assertRaises(User.DoesNotExist, User.objects.using('default').get, username='alice')
    bob = User.objects.using('default').get(username='bob')
    self.assertEqual(bob.username, 'bob')
    self.assertEqual(bob._state.db, 'default')
    self.assertRaises(User.DoesNotExist, User.objects.using('other').get, username='bob')
    self.assertEqual(User.objects.using('default').count(), 1)
    self.assertEqual(User.objects.using('other').count(), 1)
