summaryrefslogtreecommitdiff
path: root/src/scripts/pyolian/test_eolian.py
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2018-03-16 14:25:44 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2018-03-16 14:26:15 +0100
commitbf1e3a702fa807d9773c9fa5f0ed93634afc8c07 (patch)
treee4b9cb1295c0bf3f44b0ae385f38570005514c16 /src/scripts/pyolian/test_eolian.py
parent47ac8689f1372639f410a2e2f612c62db612d143 (diff)
eolian: event/function_get_by_name -> by_name_get
Diffstat (limited to 'src/scripts/pyolian/test_eolian.py')
-rwxr-xr-xsrc/scripts/pyolian/test_eolian.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/scripts/pyolian/test_eolian.py b/src/scripts/pyolian/test_eolian.py
index 8740837f39..5a22ed83df 100755
--- a/src/scripts/pyolian/test_eolian.py
+++ b/src/scripts/pyolian/test_eolian.py
@@ -326,7 +326,7 @@ class TestEolianClass(unittest.TestCase):
326class TestEolianFunction(unittest.TestCase): 326class TestEolianFunction(unittest.TestCase):
327 def test_function(self): 327 def test_function(self):
328 cls = eolian_db.class_by_name_get('Efl.Loop.Timer') 328 cls = eolian_db.class_by_name_get('Efl.Loop.Timer')
329 f = cls.function_get_by_name('delay') 329 f = cls.function_by_name_get('delay')
330 self.assertIsInstance(f, eolian.Function) 330 self.assertIsInstance(f, eolian.Function)
331 self.assertEqual(f.name, 'delay') 331 self.assertEqual(f.name, 'delay')
332 self.assertEqual(f.type, eolian.Eolian_Function_Type.METHOD) 332 self.assertEqual(f.type, eolian.Eolian_Function_Type.METHOD)
@@ -357,7 +357,7 @@ class TestEolianFunction(unittest.TestCase):
357 357
358 def test_function_parameter(self): 358 def test_function_parameter(self):
359 cls = eolian_db.class_by_name_get('Efl.Loop.Timer') 359 cls = eolian_db.class_by_name_get('Efl.Loop.Timer')
360 f = cls.function_get_by_name('delay') 360 f = cls.function_by_name_get('delay')
361 p = list(f.parameters)[0] 361 p = list(f.parameters)[0]
362 self.assertEqual(p.direction, eolian.Eolian_Parameter_Dir.IN) 362 self.assertEqual(p.direction, eolian.Eolian_Parameter_Dir.IN)
363 self.assertEqual(p.name, 'add') 363 self.assertEqual(p.name, 'add')
@@ -372,7 +372,7 @@ class TestEolianFunction(unittest.TestCase):
372class TestEolianImplement(unittest.TestCase): 372class TestEolianImplement(unittest.TestCase):
373 def test_implement(self): 373 def test_implement(self):
374 cls = eolian_db.class_by_name_get('Efl.Loop.Timer') 374 cls = eolian_db.class_by_name_get('Efl.Loop.Timer')
375 f = cls.function_get_by_name('delay') 375 f = cls.function_by_name_get('delay')
376 im = f.implement 376 im = f.implement
377 self.assertIsInstance(im, eolian.Implement) 377 self.assertIsInstance(im, eolian.Implement)
378 self.assertEqual(im.full_name, 'Efl.Loop.Timer.delay') 378 self.assertEqual(im.full_name, 'Efl.Loop.Timer.delay')
@@ -392,7 +392,7 @@ class TestEolianEvent(unittest.TestCase):
392 def test_event(self): 392 def test_event(self):
393 cls = eolian_db.class_by_name_get('Efl.Loop.Timer') 393 cls = eolian_db.class_by_name_get('Efl.Loop.Timer')
394 self.assertEqual([e.name for e in cls.events], ['tick']) 394 self.assertEqual([e.name for e in cls.events], ['tick'])
395 ev = cls.event_get_by_name('tick') 395 ev = cls.event_by_name_get('tick')
396 self.assertIsInstance(ev, eolian.Event) 396 self.assertIsInstance(ev, eolian.Event)
397 self.assertEqual(ev.name, 'tick') 397 self.assertEqual(ev.name, 'tick')
398 self.assertEqual(ev.c_name, 'EFL_LOOP_TIMER_EVENT_TICK') 398 self.assertEqual(ev.c_name, 'EFL_LOOP_TIMER_EVENT_TICK')
@@ -535,7 +535,7 @@ class TestEolianTypedecl(unittest.TestCase):
535class TestEolianType(unittest.TestCase): 535class TestEolianType(unittest.TestCase):
536 def test_type_regular_builtin(self): 536 def test_type_regular_builtin(self):
537 cls = eolian_db.class_by_name_get('Efl.Loop.Timer') 537 cls = eolian_db.class_by_name_get('Efl.Loop.Timer')
538 func = cls.function_get_by_name('delay') 538 func = cls.function_by_name_get('delay')
539 param = list(func.parameters)[0] 539 param = list(func.parameters)[0]
540 t = param.type # type: double 540 t = param.type # type: double
541 self.assertIsInstance(t, eolian.Type) 541 self.assertIsInstance(t, eolian.Type)
@@ -560,7 +560,7 @@ class TestEolianType(unittest.TestCase):
560 560
561 def test_type_regular(self): 561 def test_type_regular(self):
562 cls = eolian_db.class_by_name_get('Efl.Gfx') 562 cls = eolian_db.class_by_name_get('Efl.Gfx')
563 func = cls.function_get_by_name('geometry') 563 func = cls.function_by_name_get('geometry')
564 param = list(func.setter_values)[0] 564 param = list(func.setter_values)[0]
565 t = param.type # type: Eina.Rect 565 t = param.type # type: Eina.Rect
566 self.assertIsInstance(t, eolian.Type) 566 self.assertIsInstance(t, eolian.Type)
@@ -584,7 +584,7 @@ class TestEolianType(unittest.TestCase):
584 584
585 def test_type_class(self): 585 def test_type_class(self):
586 cls = eolian_db.class_by_name_get('Efl.Content') 586 cls = eolian_db.class_by_name_get('Efl.Content')
587 func = cls.function_get_by_name('content') 587 func = cls.function_by_name_get('content')
588 param = list(func.setter_values)[0] 588 param = list(func.setter_values)[0]
589 t = param.type # type: Efl.Gfx (class interface) 589 t = param.type # type: Efl.Gfx (class interface)
590 self.assertIsInstance(t, eolian.Type) 590 self.assertIsInstance(t, eolian.Type)