# encoding: utf-8

from evdev import ecodes

def test_equality():
    keys = []
    for i in 'KEY','ABS','REL','SW','MSC','LED','BTN','REP','SND','ID','EV','BUS','SYN':
        keys.extend(getattr(ecodes, i, {}).keys())

    assert set(keys) == set(ecodes.ecodes.values())

def test_access():
    assert ecodes.KEY_A == ecodes.ecodes['KEY_A'] == ecodes.KEY_A
    assert ecodes.KEY[ecodes.ecodes['KEY_A']] == 'KEY_A'
    assert ecodes.REL[0] == 'REL_X'


@@ -42,130 +42,148 @@
 es%0A%0A
-def test_equality():%0A    keys = %5B%5D%0A    for i in 'KEY','ABS','REL','SW','MSC','LED','BTN','REP','SND','ID','EV','BUS','SYN'
+prefixes = 'KEY ABS REL SW MSC LED BTN REP SND ID EV BUS SYN FF_STATUS FF'%0A%0Adef test_equality():%0A    keys = %5B%5D%0A    for i in prefixes.split()
 :%0A  
@@ -464,8 +464,169 @@
 REL_X'%0A%0A
+def test_overlap():%0A    vals_ff = set(ecodes.FF.values())%0A    vals_ff_status = set(ecodes.FF_STATUS.values())%0A    assert bool(vals_ff & vals_ff_status) == False%0A

add FF_STATUS and FF tests