
from __future__ import print_function, unicode_literals

import nose.tools as nose

from tests.utils import run_filter


def test_ignore_case():
    """should ignore case when querying songs"""
    results = run_filter('playsong', 'mr Blue SKY')
    nose.assert_equal(results[0]['title'], 'Mr. Blue Sky')


def test_partial():
    """should match partial queries"""
    results = run_filter('playsong', 'blue sky')
    nose.assert_equal(results[0]['title'], 'Mr. Blue Sky')


from __future__ import print_function, unicode_literals

import nose.tools as nose

from tests.utils import run_filter


def test_ignore_case():
    """should ignore case when querying songs"""
    results = run_filter('playsong', 'mr Blue SKY')
    nose.assert_equal(results[0]['title'], 'Mr. Blue Sky')


def test_partial():
    """should match partial queries when querying songs"""
    results = run_filter('playsong', 'blue sky')
    nose.assert_equal(results[0]['title'], 'Mr. Blue Sky')

Add extra description to partial match playsong test
Add extra description to partial match playsong test

  
  from __future__ import print_function, unicode_literals
  
  import nose.tools as nose
  
  from tests.utils import run_filter
  
  
  def test_ignore_case():
      """should ignore case when querying songs"""
      results = run_filter('playsong', 'mr Blue SKY')
      nose.assert_equal(results[0]['title'], 'Mr. Blue Sky')
  
  
  def test_partial():
-     """should match partial queries"""
+     """should match partial queries when querying songs"""
      results = run_filter('playsong', 'blue sky')
      nose.assert_equal(results[0]['title'], 'Mr. Blue Sky')
  
Add extra description to partial match playsong test
## Code Before:

from __future__ import print_function, unicode_literals

import nose.tools as nose

from tests.utils import run_filter


def test_ignore_case():
    """should ignore case when querying songs"""
    results = run_filter('playsong', 'mr Blue SKY')
    nose.assert_equal(results[0]['title'], 'Mr. Blue Sky')


def test_partial():
    """should match partial queries"""
    results = run_filter('playsong', 'blue sky')
    nose.assert_equal(results[0]['title'], 'Mr. Blue Sky')

## Instruction:
Add extra description to partial match playsong test
## Code After:

from __future__ import print_function, unicode_literals

import nose.tools as nose

from tests.utils import run_filter


def test_ignore_case():
    """should ignore case when querying songs"""
    results = run_filter('playsong', 'mr Blue SKY')
    nose.assert_equal(results[0]['title'], 'Mr. Blue Sky')


def test_partial():
    """should match partial queries when querying songs"""
    results = run_filter('playsong', 'blue sky')
    nose.assert_equal(results[0]['title'], 'Mr. Blue Sky')
