'Test management command with invalid user ids and activation keys.'

def test_command_with_invalid_arguments(self):

    user = self.users[0]
    call_command('populate_created_on_site_user_attribute', '--users', '9{id}'.format(id=user.id), '--site-domain', self.site.domain)
    self.assertIsNone(UserAttribute.get_user_attribute(user, CREATED_ON_SITE))
    register_user = self.registered_users[0]
    call_command('populate_created_on_site_user_attribute', '--activation-keys', 'invalid-{key}'.format(key=register_user.activation_key), '--site-domain', self.site.domain)
    self.assertIsNone(UserAttribute.get_user_attribute(register_user.user, CREATED_ON_SITE))
