def test_with_release_branch(self, mock_args): mock_args.assert_not_called() self.assertEqual(SemVer.get_active_branch().__repr__(), '1.2.3') mock_args.assert_called_once_with()
def test_without_release_branch(self, mock_args): mock_args.assert_not_called() self.assertIsNone(SemVer.get_active_branch()) mock_args.assert_called_once_with()