Skip to content

Commit 5572b7e

Browse files
committed
Fix typo.
1 parent 720e723 commit 5572b7e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

ppp_datamodel/nodes/list_operators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class ListNodeOperator(AbstractNode):
1414
_possible_attributes = ('list',)
1515

1616
def _check_attributes(self, attributes):
17-
super(ListOperator, self)._check_attributes(attributes)
17+
super(ListNodeOperator, self)._check_attributes(attributes)
1818
if not isinstance(attributes['list'], List):
1919
raise TypeError('The “list” argument of the %s constructor '
2020
'should be a List node, not %r' %

tests/test_list_operators.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from ppp_datamodel import AbstractNode, Resource, List
2-
from ppp_datamodel import Union
2+
from ppp_datamodel import Union, First
33

44
from unittest import TestCase
55

@@ -38,3 +38,6 @@ def testHash(self):
3838
self.assertNotEqual(hash(o1), h2)
3939
hash(Union([o1, o2]))
4040
o1.as_json()
41+
42+
def testFirst(self):
43+
First(List([Resource('foo'), Resource('bar')]))

0 commit comments

Comments
 (0)