MCPcopy Create free account
hub / github.com/bspaans/python-mingus / test_from_int

Method test_from_int

tests/unit/containers/test_note.py:96–98  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

94 self.assertEqual(Note("C-5"), a)
95
96 def test_from_int(self):
97 self.assertEqual(Note("C", 0), Note().from_int(0))
98 self.assertEqual(Note("C", 1), Note().from_int(12))
99
100 def test_measure(self):
101 self.assertTrue(Note("C").measure(Note("D")) == 2)

Callers

nothing calls this directly

Calls 2

NoteClass · 0.90
from_intMethod · 0.80

Tested by

no test coverage detected