def test_list_(self): ''' Test for list the installable versions of ruby. ''' with patch.object(rbenv, '_rbenv_exec', return_value='A\nB\nCD\n'): self.assertListEqual(rbenv.list_(), ['A', 'B', 'CD'])
def test_list_(self): """ Test for list the installable versions of ruby. """ with patch.object(rbenv, "_rbenv_exec", return_value="A\nB\nCD\n"): self.assertListEqual(rbenv.list_(), ["A", "B", "CD"])