def METHOD_NAME(self):
    """Test unsuccessful registration (weak password)"""
    self.user_login('test')
    user = User.objects.get(username='test')
    token = Token.objects.get(user=user)
    response = self.client.post(
        reverse('api_register'),
        {'password': 'AekaiLe0ga'},
        Authorization=f'Token {token.key}',
    )
    self.assertEqual(response.status_code, HTTP_400_BAD_REQUEST)