'generate_unique_password should generate a unique password string that hasn\'t been generated before.'

@patch.object(lms.djangoapps.instructor.views.api, 'generate_random_string', Mock(side_effect=['first', 'first', 'second']))
def test_generate_unique_password_no_reuse(self):

    generated_password = ['first']
    password = generate_unique_password(generated_password, 12)
    self.assertNotEquals(password, 'first')
