def test_only_major_dots_every():
 line = Line(show_only_major_dots=True, x_labels_major_every=3)
 line.add('test', range(12))
 line.x_labels = map(str, range(12))
 q = line.render_pyquery()
 assert (len(q('.dots')) == 4)

def test_only_major_dots_every ( ) : line = Line ( show_only_major_dots = True , x_labels_major_every = 3 ) line . add ( 'test' , range ( 12 ) ) line . x_labels = map ( str , range ( 12 ) ) q = line . render_pyquery ( ) assert ( len ( q ( '.dots' ) ) == 4 )
test major dots .