repoclosure: Add test for repoclosure in test phase

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2017-01-26 09:44:45 +01:00
parent 56932f9067
commit 95fc0fa4ab
2 changed files with 48 additions and 9 deletions

View file

@ -30,6 +30,10 @@ class PungiTestCase(unittest.TestCase):
class MockVariant(mock.Mock):
def __init__(self, *args, **kwargs):
super(MockVariant, self).__init__(*args, **kwargs)
self.parent = kwargs.get('parent', None)
def __str__(self):
return self.uid