コード例 #1
0
 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()
コード例 #2
0
 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()