diff --git a/bodhi-server/bodhi/server/util.py b/bodhi-server/bodhi/server/util.py
index 5e77276d8b..cf00fdfff4 100644
--- a/bodhi-server/bodhi/server/util.py
+++ b/bodhi-server/bodhi/server/util.py
@@ -346,7 +346,7 @@ def sanity_check_repodata(myurl, repo_type):
tests = []
if repo_type in ('yum', 'source'):
- tests.append((['list', 'available'], 'testrepo'))
+ tests.append((['list', '--available'], 'testrepo'))
else: # repo_type == 'module', verified above
tests.append((['module', 'list'], '.*'))
diff --git a/bodhi-server/tests/base.py b/bodhi-server/tests/base.py
index 7d1b2b20c2..4615416c5a 100644
--- a/bodhi-server/tests/base.py
+++ b/bodhi-server/tests/base.py
@@ -502,7 +502,15 @@ def mkmetadatadir(path, updateinfo=None, comps=None, source=False):
'''
- updateinfofile = 'somethingsomeIDsomething'
+
+ updateinfofile = '''
+
+
+ someID
+ something
+
+'''
+
if not os.path.isdir(path):
os.makedirs(path)
if not comps and not source: