'The methods on the auth manager obey database hints'

def test_auth_manager(self):

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