from utils import CanadianJurisdiction


class Manitoba(CanadianJurisdiction):
    classification = 'legislature'
    division_id = 'ocd-division/country:ca/province:mb'
    division_name = 'Manitoba'
    name = 'Legislative Assembly of Manitoba'
    url = 'http://www.gov.mb.ca/legislature/'
    parties = [
        {'name': 'New Democratic Party of Manitoba'},
        {'name': 'Progressive Conservative Party of Manitoba'},
        {'name': 'Manitoba Liberal Party'},
        {'name': 'Manitoba Party'},
        {'name': 'Independent'},
    ]

from utils import CanadianJurisdiction


class Manitoba(CanadianJurisdiction):
    classification = 'legislature'
    division_id = 'ocd-division/country:ca/province:mb'
    division_name = 'Manitoba'
    name = 'Legislative Assembly of Manitoba'
    url = 'http://www.gov.mb.ca/legislature/'
    parties = [
        {'name': 'Independent'},
        {'name': 'Independent Liberal'},
        {'name': 'Manitoba Liberal Party'},
        {'name': 'Manitoba Party'},
        {'name': 'New Democratic Party of Manitoba'},
        {'name': 'Progressive Conservative Party of Manitoba'},
    ]
    skip_null_valid_from = True
    valid_from = '2019-09-10'

Fix for new divisions and parties
ca_mb: Fix for new divisions and parties

  from utils import CanadianJurisdiction
  
  
  class Manitoba(CanadianJurisdiction):
      classification = 'legislature'
      division_id = 'ocd-division/country:ca/province:mb'
      division_name = 'Manitoba'
      name = 'Legislative Assembly of Manitoba'
      url = 'http://www.gov.mb.ca/legislature/'
      parties = [
+         {'name': 'Independent'},
+         {'name': 'Independent Liberal'},
+         {'name': 'Manitoba Liberal Party'},
+         {'name': 'Manitoba Party'},
          {'name': 'New Democratic Party of Manitoba'},
          {'name': 'Progressive Conservative Party of Manitoba'},
-         {'name': 'Manitoba Liberal Party'},
-         {'name': 'Manitoba Party'},
-         {'name': 'Independent'},
      ]
+     skip_null_valid_from = True
+     valid_from = '2019-09-10'
  
Fix for new divisions and parties
## Code Before:
from utils import CanadianJurisdiction


class Manitoba(CanadianJurisdiction):
    classification = 'legislature'
    division_id = 'ocd-division/country:ca/province:mb'
    division_name = 'Manitoba'
    name = 'Legislative Assembly of Manitoba'
    url = 'http://www.gov.mb.ca/legislature/'
    parties = [
        {'name': 'New Democratic Party of Manitoba'},
        {'name': 'Progressive Conservative Party of Manitoba'},
        {'name': 'Manitoba Liberal Party'},
        {'name': 'Manitoba Party'},
        {'name': 'Independent'},
    ]

## Instruction:
Fix for new divisions and parties
## Code After:
from utils import CanadianJurisdiction


class Manitoba(CanadianJurisdiction):
    classification = 'legislature'
    division_id = 'ocd-division/country:ca/province:mb'
    division_name = 'Manitoba'
    name = 'Legislative Assembly of Manitoba'
    url = 'http://www.gov.mb.ca/legislature/'
    parties = [
        {'name': 'Independent'},
        {'name': 'Independent Liberal'},
        {'name': 'Manitoba Liberal Party'},
        {'name': 'Manitoba Party'},
        {'name': 'New Democratic Party of Manitoba'},
        {'name': 'Progressive Conservative Party of Manitoba'},
    ]
    skip_null_valid_from = True
    valid_from = '2019-09-10'
