On 20.05.2018 12:12, BIJAY PARIDA wrote:
> The length comparison works well.
>
> But when comparing the string it fails.
>
> - assert:
>
> # that: "file1values | unique | length == 1"
> that: file1values.get('values') | unique == 'drop' - Tried
> with
> get values.
file1values is a list so the get method wont work.
unique return a list of unique values of a list, ["a", "a", "b"] becomes
["a", "b"] and ["a", "a", "a"] becomes ["a"] so you can't compare that
to a string.
--
Kai Stian Olstad