diff --git a/tests/test_stanza_xep_0377.py b/tests/test_stanza_xep_0377.py
index 321a26a8..b7770517 100644
--- a/tests/test_stanza_xep_0377.py
+++ b/tests/test_stanza_xep_0377.py
@@ -23,34 +23,30 @@ class TestSpamReporting(SlixTest):
report = """
-
-
-
+
"""
iq = self.Iq()
iq['type'] = 'set'
- iq['block']['report']['spam'] = True
+ iq['block']['report']['reason'] = xep_0377.XEP_0377.SPAM
- self.check(iq, report)
+ self.check(iq, report, use_values=False)
def testEnforceOnlyOneSubElement(self):
report = """
-
-
-
+
"""
iq = self.Iq()
iq['type'] = 'set'
- iq['block']['report']['spam'] = True
- iq['block']['report']['abuse'] = True
- self.check(iq, report)
+ iq['block']['report']['reason'] = xep_0377.XEP_0377.SPAM
+ iq['block']['report']['reason'] = xep_0377.XEP_0377.ABUSE
+ self.check(iq, report, use_values=False)
suite = unittest.TestLoader().loadTestsFromTestCase(TestSpamReporting)