def test_only_major_dots():
 line = Line(show_only_major_dots=True)
 line.add('test', range(12))
 line.x_labels = map(str, range(12))
 line.x_labels_major = ['1', '5', '11']
 q = line.render_pyquery()
 assert (len(q('.dots')) == 3)

def test_only_major_dots ( ) : line = Line ( show_only_major_dots = True ) line . add ( 'test' , range ( 12 ) ) line . x_labels = map ( str , range ( 12 ) ) line . x_labels_major = [ '1' , '5' , '11' ] q = line . render_pyquery ( ) assert ( len ( q ( '.dots' ) ) == 3 )
test major dots with specified major labels .