'Ensures that users are created if they don\'t exist and reused if they do.'

def test_user(self):

    self.assertEqual([], list(User.objects.all()))
    call_command('manage_user', TEST_USERNAME, TEST_EMAIL)
    user = User.objects.get(username=TEST_USERNAME)
    self.assertEqual(user.username, TEST_USERNAME)
    self.assertEqual(user.email, TEST_EMAIL)
    self.assertIsNotNone(user.profile)
    call_command('manage_user', TEST_USERNAME, TEST_EMAIL)
    self.assertEqual([(TEST_USERNAME, TEST_EMAIL)], [(u.username, u.email) for u in User.objects.all()])
