def test_c(self): self.assertTrue(at_most_3_in_row_ixcm("C"))
def test_CCCC_at_end(self): self.assertFalse(at_most_3_in_row_ixcm("CCMMIILLXXIICCLLCCCC"))
def test_MMMM_at_end(self): self.assertFalse(at_most_3_in_row_ixcm("CCMMIILLXXIICCLLMMMM"))
def test_m_pairs(self): self.assertTrue(at_most_3_in_row_ixcm("MMCMMDMM"))
def test_IIII_at_end(self): self.assertFalse(at_most_3_in_row_ixcm("CCMMIILLXXIICCLLIIII"))
def test_x_pairs(self): self.assertTrue(at_most_3_in_row_ixcm("XXDXXLXX"))
def test_c_pairs(self): self.assertTrue(at_most_3_in_row_ixcm("CCMCCLCC"))
def test_i_pairs(self): self.assertTrue(at_most_3_in_row_ixcm("IIXIICII"))
def test_mmmm(self): self.assertFalse(at_most_3_in_row_ixcm("MMMM"))
def test_cccc(self): self.assertFalse(at_most_3_in_row_ixcm("CCCC"))
def test_xxxx(self): self.assertFalse(at_most_3_in_row_ixcm("XXXX"))
def test_iiii(self): self.assertFalse(at_most_3_in_row_ixcm("IIII"))