Beispiel #1
0
    def test_create_single_with_custom_idx(self):
        ll = LabelList.create_single('bob', idx='name')

        assert ll == LabelList(idx='name', labels=[Label('bob')])
Beispiel #2
0
    def test_create_single(self):
        ll = LabelList.create_single('bob')

        assert ll == LabelList(idx='default', labels=[Label('bob')])