Add test for setting ReferenceListProperty slice.

This commit is contained in:
Ian Foote 2013-07-21 15:45:58 +01:00
parent b464278d05
commit 6c8f07f5fe
1 changed files with 3 additions and 0 deletions

View File

@ -245,6 +245,9 @@ class PropertiesTestCase(unittest.TestCase):
pos.get(wid)[0] = 10
self.assertEqual(pos.get(wid), [10, 0])
pos.get(wid)[:] = (20, 30)
self.assertEqual(pos.get(wid), [20, 30])
def test_dict(self):
from kivy.properties import DictProperty