Commit b698ee82 authored by FichteFoll's avatar FichteFoll

Check if branch is non-empty

I guess we could do more tests here, but I'm not entirely sure which
branch names/characters are allowed.
parent bbf7188c
......@@ -417,6 +417,10 @@ class TestContainer(object):
'It is unlikely to specify the prefix '
'"true" use not the boolean `true`')
elif k == 'branch':
self.assertNotEqual(v, "",
'"branch" must be non-empty')
elif k == 'sha256':
self.assertRegex(v, r'(?i)^[0-9a-f]{64}$')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment