7 from straw
.SummaryItem
import SummaryItem
15 self
.summaryItem
= SummaryItem(mock
)
18 self
.summaryItem
= None
22 def _cb(*args
): assert True
23 self
.summaryItem
.connect('read', _cb
)
24 self
.summaryItem
.seen
= True
25 assert self
.summaryItem
.seen
is True
27 def test_sticky(self
):
28 def _cb(*args
): assert True
29 self
.summaryItem
.connect('sticky', _cb
)
30 self
.summaryItem
.sticky
= True
31 assert self
.summaryItem
.sticky
is True
32 self
.summaryItem
.sticky
= False
33 assert self
.summaryItem
.sticky
is False
36 self
.summaryItem
.id = 1
37 assert summaryItem
.id is 1