def test_fails_on_bothagg(self): with self.assertRaises(AssertionError): static_assert.assert_not_contains_secure_aggregation( secure_and_unsecure_aggregation)
def test_passes_on_unsecagg(self): static_assert.assert_not_contains_secure_aggregation( unsecure_aggregation)