def test_roll_parser(self): """Roll dice by using string specs""" r = Roller.roll_parser("d1") self.assertEqual(r, 1) r = Roller.roll_parser("1d1") self.assertEqual(r, 1) r = Roller.roll_parser("1d1+1") self.assertEqual(r, 2)