def METHOD_NAME(self):
    exc = self.assert_mfd_error(
        EvenlyDiscretizedMFD,
        min_mag=-1, bin_width=2, occurrence_rates=[0.1, 1]
    )
    self.assertEqual(str(exc), 'minimum magnitude must be non-negative')